package com.meida.module.bus.provider.service;

import com.meida.common.mybatis.model.ResultBody;
import com.meida.module.bus.client.entity.BusPurchase;
import com.meida.common.mybatis.base.service.IBaseService;

import java.util.Map;

/**
 * 采购计划表 接口
 *
 * @author flyme
 * @date 2020-10-19
 */
public interface BusPurchaseService extends IBaseService<BusPurchase> {
    //获取开口订单数据
    ResultBody getSyncSrmOpenData(Map params);

    ResultBody syncDataOpen(Map params) throws Exception;

    /**
     * 更新申请记录审批状态
     * @param purchaseId
     * @param state
     */
    void updateApprovalState(Long purchaseId, int state);
}
